package com.gxa.service.impl;

import com.gxa.mapper.ThemeMapper;
import com.gxa.pojo.Theme;
import com.gxa.service.ThemeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 伍炳清
 * @date 2020-09-24 14:16
 */
@Service("themeService")
public class ThemeServiceImpl implements ThemeService {

    @Resource
    private ThemeMapper themeMapper;

    @Override
    public Theme findThemeById(Integer id) {

        Theme theme = themeMapper.findById(id);

        return theme;
    }

    @Override
    public List<Theme> findAllTheme() {

        List<Theme> list = themeMapper.findAllTheme();

        return list;
    }


}
